//
//  PhotoAsset+filter.m
//  XPhoto
//
//  Created by baboy on 2020/7/13.
//  Copyright © 2020 baboy. All rights reserved.
//

#import "PhotoAsset+filter.h"

@implementation PhotoAsset(filter)

- (CIFilter *)filter{
    return (CIFilter *)objc_getAssociatedObject(self, @selector(filter));
}

- (void)setFilter:(CIFilter *)filter {
    objc_setAssociatedObject(self, @selector(filter), filter, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (NSString *)filterName{
    return (NSString *)objc_getAssociatedObject(self, @selector(filterName));
}

- (void)setFilterName:(NSString *)filterName {
    objc_setAssociatedObject(self, @selector(filterName), filterName, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
@end
